<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
        	<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
        <script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>
		 <script src="assets/laydate/laydate.js" type="text/javascript"></script>
		<style type="text/css"> 
         #preview{width:100px;height:100px;border:1px solid #000;overflow:hidden;} 
         #imghead {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);} 
        </style> 
<title>用户中心</title>
<script type="text/javascript">  
        function previewImage(file) 
        { 
          var MAXWIDTH  = 100;  
          var MAXHEIGHT = 100; 
          var div = document.getElementById('preview'); 
          if (file.files && file.files[0]) 
          { 
              div.innerHTML ='<img id=imghead>'; 
              var img = document.getElementById('imghead'); 
              img.onload = function(){ 
                var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
                img.width  =  rect.width; 
                img.height =  rect.height; 
//                 img.style.marginLeft = rect.left+'px'; 
                img.style.marginTop = rect.top+'px'; 
              } 
              var reader = new FileReader(); 
              reader.onload = function(evt){img.src = evt.target.result;} 
              reader.readAsDataURL(file.files[0]); 
          } 
          else //兼容IE 
          { 
            var sFilter='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'; 
            file.select(); 
            var src = document.selection.createRange().text; 
            div.innerHTML = '<img id=imghead>'; 
            var img = document.getElementById('imghead'); 
            img.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = src; 
            var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
            status =('rect:'+rect.top+','+rect.left+','+rect.width+','+rect.height); 
            div.innerHTML = "<div id=divhead style='width:"+rect.width+"px;height:"+rect.height+"px;margin-top:"+rect.top+"px;"+sFilter+src+"\"'></div>"; 
          } 
        } 
        function clacImgZoomParam( maxWidth, maxHeight, width, height ){ 
            var param = {top:0, left:0, width:width, height:height}; 
            if( width>maxWidth || height>maxHeight ) 
            { 
                rateWidth = width / maxWidth; 
                rateHeight = height / maxHeight; 
                  
                if( rateWidth > rateHeight ) 
                { 
                    param.width =  maxWidth; 
                    param.height = Math.round(height / rateWidth); 
                }else 
                { 
                    param.width = Math.round(width / rateHeight); 
                    param.height = maxHeight; 
                } 
            } 
              
            param.left = Math.round((maxWidth - param.width) / 2); 
            param.top = Math.round((maxHeight - param.height) / 2); 
            return param; 
        } 
		$(function(){  
		   var disabled = true;   
		     $('#a2').click(function(){  
			        if(!disabled){  
				 $('input[id="title2"]').attr('disabled', 'disabled');   
						} else {     
							 $('input[id="title2"]').removeAttr('disabled');   
								}    
								 disabled = !disabled;
									  }); }); 

$(function(){  
		   var disabled = true;   
		     $('#a1').click(function(){  
			        if(!disabled){  
				 $('input[id="title1"]').attr('disabled', 'disabled');   
						} else {     
							 $('input[id="title1"]').removeAttr('disabled');   
								}    
								 disabled = !disabled;
									  }); }); 
</script>  
</head>
<body>
<div class="margin clearfix">
 <div class="stystems_style">
		<div class="tab-content">
		<div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>企业图标： </label>
        <div id="preview" style="margin-left:140px;"><img id="imghead" width=80 height=80 border=0 src='images/user.png'> </div></div>
		 
         <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>企业名称： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="花海iatiant" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>企业类型： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="个人" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>经营范围： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="汽车、飞机" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
	      <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>成立日期： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="2016-4-3" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
          <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>固定电话： </label>
          <div class="col-sm-9"><input type="text" id="title1"  value="025-56787876" style=" width:300px" class="col-xs-10" disabled>
		  </div>
		  </div>
          <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>电子邮箱： </label>
          <div class="col-sm-9"><input type="text" id="titl"  value="789@qiye.com" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
          <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>详细地址： </label>
          <div class="col-sm-9"><input type="text" id="title2"  value="河北省河北市" style=" width:300px" class="col-xs-10" disabled>
          </div>
		  </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>合作关系： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="客户" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>合作起始： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="2016/06/06" style=" width:300px" class="col-xs-10" disabled></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>销售专员： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="小强" style=" width:300px" class="col-xs-10"></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>拜访专员： </label>
          <div class="col-sm-9"><input type="text" id="website-title"  value="" style=" width:300px" class="col-xs-10"></div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>拜访状态： </label>
          <div class="col-sm-9">
		  <span class="formControls col-4"><select style=" width:300px" class="form-control" id="form-field-select-1">
          
          <option value="1">待出发</option>
          <option value="2">拜访中</option>
          <option value="3">已拜访</option>
          </select>
          </span>
		  </div>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i>*</i>拜访时间： </label>
          <div class="col-sm-9"><input class="inline laydate-icon" id="start1"  value="" style=" margin-left:10px;width:300px"></div>
          </div>
           <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1"><i></i>企业简介： </label>
          <div class="col-sm-9"><textarea class="textarea"></textarea></div>
          </div>
          <div class="Button_operation"> 
				<button onclick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="fa fa-save "></i>&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
				
				<button onclick="history.go(-1)" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
 
 </div>
</div>

</body>
</html>
<script type="text/javascript">
 laydate({
    elem: '#start1',
    event: 'focus' 
});
 laydate({
	elem: '#start2',
    event: 'focus' 
});
</script>
    